//
//  AXFAddressManager.h
//  AIXF
//
//  Created by zhanghui on 2017/7/13.
//  Copyright © 2017年 Macx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AXFMyAddressModel.h"

#define _addressManager ([AXFAddressManager sharedInstance])

typedef NS_ENUM(NSUInteger, AddressMangagerType) {
    AddressMangagerTypeAdd, //新增
    AddressMangagerTypeAddRemove, //删除
    AddressMangagerTypeAddInsertFornt, //插大到第0个
};

@interface AXFAddressManager : NSObject

INTERFACE_SINGLETON(AXFAddressManager);

//展示所有的地址
@property (nonatomic,strong)NSMutableArray<AXFMyAddressModel *> *addressList;

//增加地址
- (void)addNewAddressAction:(AXFMyAddressModel *)model;

//删除地址
- (void)deleteAddressAction:(NSUInteger )index;

//插入到最顶上
- (void)insertTopAction:(AXFMyAddressModel *)model;

@property (assign,nonatomic)AddressMangagerType type;




//归档
- (void)addressListArchiver;



//接档
- (id)addressListUnArchiver;

@end
